#ifndef TABLEWIDGET_H
#define TABLEWIDGET_H

#include <QVariant>
#include <QAction>
#include <QApplication>
#include <QButtonGroup>
#include <QGridLayout>
#include <QHeaderView>
#include <QLabel>
#include <QComboBox>
#include <QTableWidget>
#include <QToolButton>
#include <QWidget>
#include <QVector>
#include <QString>
#include <QStringList>
class TableWidget : public QWidget
{
    Q_OBJECT
public:
    explicit TableWidget(QWidget *parent = 0);
    QGridLayout *gridLayout;
    QToolButton *first_page;
    QToolButton *up_page;
    QLabel *label;
    QComboBox *combox;
    QLabel *all_page;
    QToolButton *next_page;
    QToolButton *last_page;
    QTableWidget *tableWidget;
    QVector< QVector<QString> >data;

    int record_page;
    int total_page;
    int curr_page;

    void set_title(QStringList);
    void set_record_page(int);
    void set_columnWidth(int,int);
signals:

public slots:
    void updata_data(QVector< QVector<QString> >);
    void insert_data(int);
    void firstpage();
    void uppage();
    void nextpage();
    void lastpage();
    void jump_page(int);

};

#endif // TABLEWIDGET_H
